"""布尔类型和比较运算符"""
# boolean1=True
# boolean2=False
# print(f"变量1是{boolean1},类型是{type(boolean1)}")
# print(f"变量2是{boolean2},类型是{type(boolean2)}")

# result=10<5
# print(f"运算结果是{result},结果的类型是{type(result)}")

# num1=10
# num2=20
# print(f"结果是{num1>=num2},类型是{type(num1>=num2)}")

# """判断语句的语法"""
# age=20
# print("我今年%d岁" %age)
# if age>18:
#     print("i have become a adult")
# print("时间过的真快啊")

"""if else"""
age=input("请输入您的年龄:")
age=int(age)
if age>18:
    print(f"您的年龄是{age},请购票")
else:
    print(f"您的年龄是{age},无需购票")
print("欢迎光临")
